package org.annotation;

public class MyClass {
    private String name;
    private int id;
    public MyClass() {
        // 默认构造方法
    }

    public MyClass(String name, int id) {
        this.name = name;
        this.id = id;
    }
    @MyAnnotation(value = "Hello", count = 5)
    public void myMethod() {
        System.out.println("Executing myMethod");
    }

    public void myMethod(String message) {
        System.out.println("Message: " + message);
    }

    @Override
    public String toString() {
        return "MyClass{name='" + name + "', id=" + id + "}";
    }
}
